package com.lcy.attendance.system.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

/**
 * 检查用户权限的拦截器
 * @author AsherYuan 2013-3-16
 */
public class AuthorityCheckInterceptor extends HandlerInterceptorAdapter {

	/**
	 * 检查用户权限，前置拦截器为sessionCheckInterceptor,要求用户已登录并有session信息
	 * 根据session信息中的用户信息，获取到数据库中的权限信息，进行比对
	 */
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
		
		return super.preHandle(request, response, handler);
	}

}
